import metaInterface from '../../meta.interface';
import LIcon from '@/components/public/lIcon/lIcon';
export default {
  path: 'permission',
  name: 'permission',
  meta: {
    title: '权限管理',
    icon: () => <LIcon type="icon-auth" />,
  } as metaInterface,
  children: [
    {
      path: 'menuPage',
      name: 'menuPage',
      component: () => import('@/views/index/permission/menuPage/menuPage'),
      meta: {
        title: '权限管理',
      } as metaInterface,
    },
    {
      path: 'dataAuthPage',
      name: 'dataAuthPage',
      component: () => import('@/views/index/permission/dataAuthPage/dataAuthPage'),
      meta: {
        title: '数据权限',
      } as metaInterface,
    },
    {
      path: 'rolePage',
      name: 'rolePage',
      component: () => import('@/views/index/permission/rolePage/rolePage'),
      meta: {
        title: '角色管理',
      } as metaInterface,
    },
    {
      path: 'roleUserPage',
      name: 'roleUserPage',
      component: () => import('@/views/index/permission/roleUserPage/roleUserPage'),
      meta: {
        title: '分配用户',
        activeMenu: 'rolePage',
      } as metaInterface,
    },
  ],
}